<%@ page import="org.bjou.UserAttach" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="pertho">
		<g:set var="entityName" value="${message(code: 'userAttach.label', default: 'UserAttach')}" />
		<title><g:message code="default.create.label" args="[entityName]" /></title>
	</head>
	<body>
		
		<div class="container">
		<div class="row">
		  <div class="twelve columns">
			<div class="box_c">
			  <div class="box_c_heading cf">
				<p><g:message code="default.create.label" args="[entityName]" /></p>
			  </div>
			  <div class="box_c_content">
				<!-- start -->
		
		<div id="create-userAttach" class="content scaffold-create" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${userAttachInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${userAttachInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
                  
                  
                  
                  <g:uploadForm action="uploadCourseRule" method="post" class="nice">
                    
                     <div class="formRow">
     文件描述
               <g:textField name="fileDscp" value="${userAttachInstance?.fileDscp}"/>
      <label for="fileupload">上传附件:</label>
     <input type="file" name="fileupload" id="fileupload" />
   </div>
<div class="formRow">
       <g:submitButton name="save" class="gh_button" value="${message(code: 'default.button.upload.label', default: '上传')}" />		

     </div>  
                    <g:hiddenField name="userBaseinfo.id" value="${userAttachInstance?.userBaseinfo?.id}" />
                  </g:uploadForm>
			
			<!-- end -->
            </div>
          </div>
        </div>
      </div>
    </div>
	</body>
</html>
